package com.inifitness.admin.core.system.converter;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.inifitness.admin.core.system.model.entity.SysDictItem;
import com.inifitness.admin.core.system.model.form.DictItemForm;
import com.inifitness.admin.core.system.model.vo.DictItemPageVO;

import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;

/**
 * 字典数据项对象转换器
 *
 * @author sunjinfeng
 * @since 2024/04/18 11:00:00
 */
@Mapper(componentModel = "spring")
public interface DictItemConverter {

  Page<DictItemPageVO> entity2Page(Page<SysDictItem> page);

  DictItemForm entity2Form(SysDictItem entity);

  @InheritInverseConfiguration(name = "entity2Form")
  SysDictItem form2Entity(DictItemForm entity);
}
